package yl.hs.bmipfull.pojo.system;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

/**
 * 作用:  网络设备信息表实体类<br/>
 * 创建时间: 2021年06月04日 15时16分51秒 <br/>
 *
 * @author 吴高丰
 */
@DBTable(disName = "网络设备信息表", mapCode = "went_equipment")
public class WentEquipmentEntity extends BaseEntity {

    /**
     * 主键
     */
    @Nullable
    private Long id;
    /**
     * 设备编号
     */
    @DBField(disName = "网络设备信息表编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "DNET")
    private String sn;
    /**
     * 设备名称
     */
    private String deviceName;
    /**
     * 地磅编号
     */
    private String mainSn;

    private String useType;
    /**
     * 设备类型
     */
    private String deviceType;
    /**
     * 设备位置
     */
    private int deviceLocation;
    /**
     * 设备IP地址
     */
    private String iPAddress;
    /**
     * 设备端口号
     */
    private int iPProt;
    /**
     * 登录名
     */
    private String loginName;
    /**
     * 密码
     */
    private String loginPwd;
    /**
     * 数据长度
     */
    private int dataLength;
    /**
     * 是否主机模式
     */
    private boolean isServer;
    /**
     * 起始位
     */
    private int startIndex;
    /**
     * 启用标识
     */
    private boolean enableMark;
    /**
     * 备注
     */
    private String remark;
    private short state;

    public String getMainSn() {
        return mainSn;
    }

    public void setMainSn(String mainSn) {
        this.mainSn = mainSn;
    }

    public String getiPAddress() {
        return iPAddress;
    }

    public void setiPAddress(String iPAddress) {
        this.iPAddress = iPAddress;
    }

    public int getiPProt() {
        return iPProt;
    }

    public void setiPProt(int iPProt) {
        this.iPProt = iPProt;
    }

    public boolean isServer() {
        return isServer;
    }

    public void setServer(boolean server) {
        isServer = server;
    }

    public boolean isEnableMark() {
        return enableMark;
    }

    public short getState() {
        return state;
    }

    public void setState(short state) {
        this.state = state;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSn() {
        return this.sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getDeviceName() {
        return this.deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceType() {
        return this.deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public int getDeviceLocation() {
        return this.deviceLocation;
    }

    public void setDeviceLocation(int deviceLocation) {
        this.deviceLocation = deviceLocation;
    }

    public String getIPAddress() {
        return this.iPAddress;
    }

    public void setIPAddress(String iPAddress) {
        this.iPAddress = iPAddress;
    }

    public int getIPProt() {
        return this.iPProt;
    }

    public void setIPProt(int iPProt) {
        this.iPProt = iPProt;
    }

    public String getLoginName() {
        return this.loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getLoginPwd() {
        return this.loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd;
    }

    public int getDataLength() {
        return dataLength;
    }

    public void setDataLength(int dataLength) {
        this.dataLength = dataLength;
    }

    public boolean getIsServer() {
        return this.isServer;
    }

    public void setIsServer(boolean isServer) {
        this.isServer = isServer;
    }

    public int getStartIndex() {
        return this.startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public boolean getEnableMark() {
        return this.enableMark;
    }

    public void setEnableMark(boolean enableMark) {
        this.enableMark = enableMark;
    }

    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }


    public String getUseType() {
        return useType;
    }

    public void setUseType(String useType) {
        this.useType = useType;
    }
}